<template>
  <div>
    御剑乘风来,除魔天地间!===vue3
    <h1 ref="hRef">我是一个盒子</h1>
  </div>
</template>
<script>
import { ref, onMounted } from 'vue'
export default {
  name: '',
  setup () {
    const hRef = ref(null)

    onMounted(() => {
      console.log(hRef.value);
    })
    return { hRef }
  }
}
</script>
<style lang='less'  scoped>
</style>